<script type="text/javascript">
	function initialize() {
		var mk_icon = new google.maps.MarkerImage('<?php echo URL;?>lib/images/marker_icon.png');
		<?php
			if ( isset($arr_location_info['groom']['lat']) && isset($arr_location_info['groom']['lon']) ){
				echo "var gr_location = new google.maps.LatLng(".$arr_location_info['groom']['lat'].",". $arr_location_info['groom']['lon'].");";
				$dsp_gr_map = true;
			}
			
			if ( isset($arr_location_info['groom']['title']) )
				echo "var gr_string = '".$arr_location_info['groom']['title']."';";
			else
				echo "var gr_string = '';";

			if ( isset($arr_location_info['bride']['lat']) && isset($arr_location_info['bride']['lon']) ){
				echo "var br_location = new google.maps.LatLng(".$arr_location_info['bride']['lat'].",". $arr_location_info['bride']['lon'].");";
				$dsp_br_map = true;
			}
			if ( isset($arr_location_info['bride']['title']) )
				echo "var br_string = '".$arr_location_info['bride']['title']."';";
			else
				echo "var br_string = '';";
		?>
		<?php if ($dsp_gr_map){ ?>
	        var gr_Options = {        	
				center : gr_location,
	          	zoom: 16,
	          	mapTypeId: google.maps.MapTypeId.ROADMAP
	        };
	        var gr_map = new google.maps.Map(document.getElementById("groom_location"),
	            gr_Options);

	        gr_marker = new google.maps.Marker({
				map:gr_map,
				animation: google.maps.Animation.DROP,
				position: gr_location,
				title : gr_string,
				icon : mk_icon
			});
		<?php } ?>

		<?php if ($dsp_br_map){ ?>
			var br_Options = {        	
				center : br_location,
	          	zoom: 16,
	          	mapTypeId: google.maps.MapTypeId.ROADMAP
	        };

	        var br_map = new google.maps.Map(document.getElementById("bride_location"),
	            br_Options);
	        
	        br_marker = new google.maps.Marker({
				map:br_map,
				animation: google.maps.Animation.DROP,
				position: br_location,
				title : br_string,
				icon : mk_icon
			});
		<?php } ?>
    }
    
	head.ready(function() {
		initialize();
	});
	
	
</script>
<div class="wedding_content">
	<br/>
	<?php 
		if (!$dsp_gr_map && !$dsp_br_map)
			echo _MSG_INFO_NOT_YET_UPDATE;
	?>
	<?php if ($dsp_gr_map){ ?>
		<div style="height:400px">
			<?php echo _LB_GROOM_LOCATION;
				$v_groom_title = '';
				if ( isset($arr_location_info['groom']['title']) )
					$v_groom_title = $arr_location_info['groom']['title'];
			?> 
			<b class="title"><?php echo $v_groom_title;?></b>
			<div class="clear">&nbsp;</div>	
			<div align="center" id="groom_location" style="width:820px; height:350px; position:relative; margin:10px; border:1px #b1c4d5 solid;"></div>
		</div>
	<?php } ?>
	<div class="clear">&nbsp;</div>
	<?php if ($dsp_br_map){ ?>
		<div style="height:400px">
			<?php echo _LB_BRIDE_LOCATION; 
				$v_bride_title = '';
				if ( isset($arr_location_info['bride']['title']) )
					$v_bride_title = $arr_location_info['bride']['title'];
			?> 
			<b class="title"><?php echo $v_bride_title;?></b>
			<div class="clear">&nbsp;</div>	
			<div align="center" id="bride_location" style="width:820px; height:350px; position:relative; margin:10px; border:1px #b1c4d5 solid;"></div>
			<div class="clear">&nbsp;</div>	
		</div>
	<?php } ?>
</div>
<div class="clear">&nbsp;</div>
